![]() |
ALMaSS
1.0
The Animal, Landscape and Man Simulation System
|
#include <skylarks_all.h>
Public Member Functions | |
Skylark_PreFledgeling (int x, int y, Landscape *L, SkTerritories *Terrs, Skylark_Male *Daddy, bool sex, double size, int age, Skylark_Population_Manager *SPM, int bx, int by, int mh) | |
virtual void | ReInit (int x, int y, Landscape *L, SkTerritories *Terrs, Skylark_Male *Daddy, bool sex, double size, int age, Skylark_Population_Manager *SPM, int bx, int by, int mh) |
virtual void | BeginStep (void) |
BeingStep behaviour - must be implemented in descendent classes. More... | |
virtual void | Step (void) |
Step behaviour - must be implemented in descendent classes. More... | |
virtual void | EndStep (void) |
EndStep behaviour - must be implemented in descendent classes. More... | |
![]() | |
Skylark_Nestling (int x, int y, Skylark_Male *Daddy, Landscape *L, SkTerritories *Terrs, Skylark_Population_Manager *SPM, int bx, int by, int mh) | |
virtual void | ReInit (int x, int y, Skylark_Male *Daddy, Landscape *L, SkTerritories *Terrs, Skylark_Population_Manager *SPM, int bx, int by, int mh) |
virtual double | On_FoodSupply (double food) |
void | OnDadDead () |
void | OnYouHaveBeenEaten () |
void | OnDeserted () |
![]() | |
Skylark_Base (int x, int y, SkTerritories *Terrs, Landscape *L, Skylark_Population_Manager *SPM, int bx, int by, int mh) | |
virtual void | ReInit (int x, int y, SkTerritories *Terrs, Landscape *L, Skylark_Population_Manager *SPM, int bx, int by, int mh) |
void | AddStriglingMort (int lifestage) |
virtual int | WhatState () |
bool | InSquare (rectangle R) |
![]() | |
unsigned | SupplyFarmOwnerRef () |
AnimalPosition | SupplyPosition () |
APoint | SupplyPoint () |
int | SupplyPolygonRef () |
int | Supply_m_Location_x () |
int | Supply_m_Location_y () |
virtual void | KillThis () |
virtual void | CopyMyself () |
void | SetX (int a_x) |
void | SetY (int a_y) |
TAnimal (int x, int y, Landscape *L) | |
virtual void | ReinitialiseObject (int x, int y, Landscape *L) |
Used to re-use an object - must be implemented in descendent classes. More... | |
virtual void | Dying () |
void | CheckManagement (void) |
void | CheckManagementXY (int x, int y) |
![]() | |
int | GetCurrentStateNo () |
Returns the current state number. More... | |
void | SetCurrentStateNo (int a_num) |
Sets the current state number. More... | |
bool | GetStepDone () |
Returns the step done indicator flag. More... | |
void | SetStepDone (bool a_bool) |
Sets the step done indicator flag. More... | |
virtual void | ReinitialiseObject () |
Used to re-use an object - must be implemented in descendent classes. More... | |
TALMaSSObject () | |
The constructor for TALMaSSObject. More... | |
virtual | ~TALMaSSObject () |
The destructor for TALMaSSObject. More... | |
void | OnArrayBoundsError () |
Used for debugging only, tests basic object properties. More... | |
Protected Member Functions | |
virtual int | st_Developing () |
virtual void | st_Maturing () |
virtual void | st_Dying () |
double | GetFood () |
double | GetFledgelingEM (int Age) |
virtual bool | OnFarmEvent (FarmToDo event) |
virtual void | PesticideResponse () |
![]() | |
bool | DailyMortality (int mort) |
![]() | |
void | CorrectWrapRound () |
Corrects wrap around co-ordinate problems. More... | |
Additional Inherited Members | |
![]() | |
double | m_pesticide_accumulation |
double | m_pcide_conc |
TTypesOfSkState | m_CurrentSkState |
int | Age |
double | m_Size |
int | m_Born_x |
int | m_Born_y |
int | m_MyHome |
The vegetation type where the skylark was born. More... | |
SkTerritories * | m_OurTerritories |
Skylark_Population_Manager * | m_OurPopulationManager |
![]() | |
bool | Sex |
int | m_EM_fail |
int | m_NestLeavingChance |
Skylark_Male * | m_Dad |
double | m_EM |
double | m_GrNeed |
![]() | |
int | m_Location_x |
int | m_Location_y |
Landscape * | m_OurLandscape |
![]() | |
int | m_CurrentStateNo |
The basic state number for all objects - '-1' indicates death. More... | |
bool | m_StepDone |
Indicates whether the iterative step code is done for this timestep. More... | |
Skylark_PreFledgeling::Skylark_PreFledgeling | ( | int | x, |
int | y, | ||
Landscape * | L, | ||
SkTerritories * | Terrs, | ||
Skylark_Male * | Daddy, | ||
bool | sex, | ||
double | size, | ||
int | age, | ||
Skylark_Population_Manager * | SPM, | ||
int | bx, | ||
int | by, | ||
int | mh | ||
) |
References Skylark_Base::Age, Skylark_Base::m_CurrentSkState, Skylark_Nestling::m_EM, Skylark_Nestling::m_GrNeed, Skylark_Base::m_Size, Skylark_Nestling::Sex, and toss_PDeveloping.
|
virtual |
BeingStep behaviour - must be implemented in descendent classes.
Reimplemented from Skylark_Nestling.
References TAnimal::CheckManagement().
|
virtual |
EndStep behaviour - must be implemented in descendent classes.
Reimplemented from Skylark_Nestling.
References Calendar::Date(), g_date, g_land, Skylark_Base::m_CurrentSkState, TALMaSSObject::m_CurrentStateNo, TALMaSSObject::m_StepDone, PesticideResponse(), st_Developing(), st_Dying(), st_Maturing(), toss_Destroy, toss_PDeveloping, toss_PDying, toss_PMaturing, and Landscape::Warn().
|
protected |
References Skylark_Base::m_OurPopulationManager, and Skylark_Population_Manager::SupplyEMi().
|
protected |
|
protectedvirtual |
Reimplemented from Skylark_Nestling.
References Skylark_Base::AddStriglingMort(), Skylark_Base::Age, autumn_harrow, autumn_or_spring_plough, autumn_plough, autumn_roll, autumn_sow, burn_straw_stubble, cattle_out, cattle_out_low, cfg_insecticide_direct_mortP, cut_to_hay, cut_to_silage, cut_weeds, Calendar::Date(), deep_ploughing, Landscape::EventtypeToString(), fa_ammoniumsulphate, fa_greenmanure, fa_manure, fa_npk, fa_pk, fa_sludge, fa_slurry, fp_greenmanure, fp_liquidNH3, fp_manganesesulphate, fp_manure, fp_npk, fp_npks, fp_pk, fp_sludge, fp_slurry, fungicide_treat, g_date, g_land, glyphosate, growth_regulator, harvest, hay_bailing, hay_turning, herbicide_treat, hilling_up, insecticide_treat, Skylark_Base::m_CurrentSkState, TAnimal::m_OurLandscape, molluscicide, mow, pigs_out, product_treat, random(), row_cultivation, sleep_all_day, spring_harrow, spring_plough, spring_roll, spring_sow, straw_chopping, strigling, strigling_sow, stubble_harrowing, swathing, syninsecticide_treat, toss_PDying, trial_insecticidetreat, CfgInt::value(), Landscape::Warn(), water, and winter_plough.
|
protectedvirtual |
Reimplemented from Skylark_Nestling.
References cfg_Skylark_prefledegling_Biodegredation, cfg_Skylark_prefledegling_NOEL, Skylark_Base::m_CurrentSkState, Skylark_Base::m_pesticide_accumulation, toss_PDying, and CfgFloat::value().
Referenced by EndStep().
|
virtual |
References Skylark_Base::Age, Skylark_Base::m_CurrentSkState, Skylark_Nestling::m_EM, Skylark_Nestling::m_GrNeed, Skylark_Base::m_Size, Skylark_Nestling::ReInit(), Skylark_Nestling::Sex, and toss_PDeveloping.
|
protectedvirtual |
Reimplemented from Skylark_Nestling.
References Skylark_Base::Age, Skylark_Base::DailyMortality(), Skylark_Nestling::m_EM, Skylark_Nestling::m_GrNeed, Skylark_Base::m_Size, and PreFledgeMortProb.
Referenced by EndStep().
|
protectedvirtual |
Reimplemented from Skylark_Nestling.
References Skylark_Base::m_CurrentSkState, TALMaSSObject::m_CurrentStateNo, Skylark_Nestling::m_Dad, Skylark_Male::OnPreFledgelingDeath(), and toss_Destroy.
Referenced by EndStep().
|
protectedvirtual |
Reimplemented from Skylark_Nestling.
References AdultSkylark_struct::age, Skylark_struct::bx, Skylark_struct::by, Skylark_Population_Manager::CreateObjects(), Skylark_struct::L, Skylark_Base::m_Born_x, Skylark_Base::m_Born_y, Skylark_Nestling::m_Dad, TAnimal::m_Location_x, TAnimal::m_Location_y, Skylark_Base::m_MyHome, TAnimal::m_OurLandscape, Skylark_Base::m_OurPopulationManager, Skylark_Base::m_OurTerritories, Skylark_Base::m_Size, Skylark_struct::mh, Skylark_Male::OnPreFledgelingMature(), AdultSkylark_struct::sex, Skylark_Nestling::Sex, AdultSkylark_struct::size, Skylark_struct::Terrs, Skylark_struct::x, and Skylark_struct::y.
Referenced by EndStep().
|
virtual |
Step behaviour - must be implemented in descendent classes.
Reimplemented from Skylark_Nestling.
References g_land, Skylark_Base::m_CurrentSkState, TALMaSSObject::m_StepDone, toss_Destroy, toss_Initiation, toss_PDeveloping, toss_PDying, toss_PMaturing, and Landscape::Warn().